//package com.money.service.impl;
//
//import com.money.demo.object.PersonOrder;
//import com.money.service.OrderService;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//import java.util.List;
//
//@Service
//public class OrderServiceImpl implements OrderService {
//    @Resource
//    private PersonMapper personMapper;
//    @Resource
//    private OrderMapper orderMapper;
//    @Resource
//    private GoodsMapper goodsMapper;
//
//    @Override
//    public void payForGoods(PersonOrder person) {
//        //未支付状态生成待支付订单
//        OrderExample example = new OrderExample();
//        example.createCriteria().andIsEffectiveEqualTo(0);
//        List<Order> orders = orderMapper.selectByExample(example);
//        if(orders.isEmpty() || orders.size()<0){
//
//        }else {
//
//        }
//        long timeMillis = System.currentTimeMillis();
//        //超过5分钟
//    }
//}
